package com.laotou99.bookManage.IDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.laotou99.bookManage.domain.BookName;

public interface BookNameMapper {

	int deleteByPrimaryKey(Integer id);

    int insert(BookName record);

    int insertSelective(BookName record);

    BookName selectByPrimaryKey(Integer id);
    
    BookName selectByName(String name);

    int updateByPrimaryKeySelective(BookName record);

    int updateByPrimaryKey(BookName record);

	List<BookName> getAllBooks();
	
	int updateByidDivNum(@Param(value="id")Integer id,
			@Param(value="num")Integer num);

	int updateByidAddNum(@Param(value="id")Integer id,
			@Param(value="num")Integer num);

	int updateByIsReturn(int id);
//public List<Teacher> selectTeacher(@Param(value="id") String id,@Param(value="sex") String sex);
	//abc test
}
